package main

import (
	"fmt"
	"os"
	"image"
	_ "image/jpeg"
	"time"
)

func main() {
	if err := Initdraw("test"); err != nil {
		fmt.Fprintln(os.Stdout, "Initdraw failed:", err.Error())
		return
	}
	err := DrawLine(window, image.Pt(100,100), image.Pt(300,100), Enddisc, Endarrow, 5, black, image.Pt(0,0))
	if err != nil {
		fmt.Fprintln(os.Stdout, "error drawing line:", err.Error())
		return
	}
	FlushImage()
	time.Sleep(3*time.Second)
}
